package com.quectel.aiot.mapper;

import com.quectel.aiot.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface RoleMapper {
    Role selectRoleById(@Param("id") Long id);
    List<Role> selectRoleList(@Param("name") String name, @Param("appId") String appId, @Param("offset") int offset, @Param("limit") int limit);
    int countRoleList(@Param("name") String name, @Param("appId") String appId);
    int insertRole(Role role);
    int updateRole(Role role);
    int deleteRole(@Param("id") Long id);
} 